package com.jjh.mapper;

import com.jjh.pojo.User;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

@Mapper
public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    User selectByPrimaryKey(Integer id);

    List<User> selectAll();

    int updateByPrimaryKey(User record);


    User getByUserName(String username);

    List<User> getByCondition(Map<String, Object> conditions);

    User getByName(String name);

    void updateStatus(String status, Integer id, LocalDateTime now);

    void deleteByIds(List<Integer> ids);

    List<User> getByIds(List<Integer> ids);
}